package com.csnf.demo.service.impl;

import com.csnf.demo.mapper.BookMapper;
import com.csnf.demo.pojo.Book;
import com.csnf.demo.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BookServiceImpl implements BookService {

    @Autowired
    BookMapper bookMapper;
    @Override
    public List<Book> findAllBooks() {
        return bookMapper.findAllBooks();
    }


    public Integer deleteById(Integer id) {
        return bookMapper.deleteById(id);
    }
}
